import request from "@/utils/request";
//  填空列表查询
export function getAnswerlist(query) {
  return request({
    url: "/manager/survey/completionAnswerList",
    method: "get",
    params: query,
  });
}
// 答卷列表查询
export function getsurveylist(data,id) {
  return request({
    url: `/manager/survey/${id}/answerList`,
    method: "post",
    data,
  });
}
// 问题列表查询
export function getquestionList(query) {
  return request({
    url: "/manager/survey/question/list",
    method: "get",
    params: query,
  });
}
// 选项列表查询
export function getoptionList(query) {
  return request({
    url: "/manager/survey/option/list",
    method: "get",
    params: query,
  });
}

// 问卷统计下载
export function exportWord(query) {
  return request({
    url: "/manager/survey/exportStatisticsWord",
    method: "get",
    responseType:"blob",
    params: query,
  });
}
// 答卷详情
export function getAnswerMsg(query) {
  return request({
    url: "/manager/survey/get/answer/detail",
    method: "get",
    params: query,
  });
}
// 答卷统计下载
export function exportExcel(data,id) {
  return request({
    url: `/manager/survey/${id}/exportAnswerExcel`,
    method: "post",
    responseType:"blob",
    data,
  });
}
// 单个答卷下载
export function exportSurvey(query) {
  return request({
    url: "/manager/survey/exportAnswerWord",
    method: "get",
    responseType:"blob",
    params: query,
  });
}
// 填空答案下载
export function exportinput(query) {
  return request({
    url: "/manager/survey/exportComAnswerExcel",
    method: "get",
    responseType:"blob",
    params: query,
  });
}